package com.xjy.pojo;

import java.util.Date;

public class Message {
    private String mid;
    private int uid;
    private String msg;
    private int type;
    //1---公告 2.私人通知
    private Date createTime;

    public Message() {}

    public Message(String mid, int uid, String msg, int type, Date createTime) {
        this.mid = mid;
        this.uid = uid;
        this.msg = msg;
        this.type = type;
        this.createTime = createTime;
    }

    public Message(String mid, String msg, int type, Date createTime) {
        this.mid = mid;
        this.msg = msg;
        this.type = type;
        this.createTime = createTime;
    }

    public String getMid() {
        return mid;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Message{" +
                "mid='" + mid + '\'' +
                ", uid=" + uid +
                ", msg='" + msg + '\'' +
                ", type=" + type +
                ", createTime=" + createTime +
                '}';
    }
}
